<template>
  <div style="height: 100%">
    <!--iframe播放-->
    <iframe :src="movieData.url" height="100%" width="100%" allowfullscreen="true"></iframe>
  </div>
</template>

<script>


export default {

  data() {
    return {
      movieData: {
        url: ''
      },
    };
  },

  created() {
    this.getVideoMsg()
  },
  methods: {
    getVideoMsg() {
      this.axios.get("/api/movies/listDetails", {
        params: {
          id: this.$route.params.movieId,
        }
      }).then(({data}) => {
        this.movieData = data.data;
      });
    },
  }

};
</script>

<style scoped>

</style>
